<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page language="java" import="org.apache.commons.lang.StringUtils" %>
<%@ taglib prefix="s"  uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ page trimDirectiveWhitespaces="true" %>
<%
	String this_path=request.getContextPath();
	String[] array = StringUtils.split( request.getServletPath(), "/", 2);
	String PACKET=array[0];
%>
<div id="jstree">
<ul id="main_menu_zzzzzzz">
<% if(PACKET.equals("fund")) { %>
	<li><a href="./fundShiftList!showfundinterest">利息转入</a></li>
	<li><a href="./fundShiftList!showfundbackinterest">返息转出</a></li>
	<li><a href="./fundShiftList!showfundout">资金转出</a></li>
	<li><a href="./fundShiftList!showfundin">资金转入</a></li>
<%}else if(PACKET.equals("bank")) {%>
	<li><a href="./baseBankAccount">银行开户登记</a></li>
	<li><a href="./showAccount">银行账户查询</a></li>
	<li><a href="./bankList">开户银行列表</a></li>
	<li><a href="./bankInsetInformation!addBank">开户银行增加</a></li>
	<li><a href="./cashAccountBase">现金账户增加</a></li>
	<li><a href="./cashAccountSearch">现金账户列表</a></li>
<%}else if(PACKET.equals("contract")){ %>
	<li>
		<a href="#">合同生成</a>
		<ul >
			<li><a href="./contractList!showcontract_company">企业合同生成</a></li>
			<li><a href="./contractList!showcontract_personal">个人合同生成</a></li>
		</ul>
	</li>
	<li><a href="#">从合同生成</a>
	<ul>
			<li><a href="./allRelation!getMortgage">抵押合同生成</a></li>
			<li><a href="./allRelation!getPledge">质押合同生成</a></li>
			<li><a href="./allRelation!getEnsure">保证合同生成</a></li>
	</ul>
	</li>
	<li><a href="./showContract!showcheck">合同审核</a></li>
	<li><a href="#">合同查询</a>
	<ul >
			<li><a href="./showContract">有效合同查询</a></li>
			<li><a href="./showContract!showfalse">作废合同查询</a></li>
	</ul>
	</li>
	<%--
	<li><a href="./showContract!showdelay">合同展期</a></li> --%>
	<li><a href="./contractCheck">审核详情</a></li>	
<%}else if(PACKET.equals("cost")){ %>
	<li><a href="./costInsertAction">财务费用录入</a></li>
	<li><a href="./showLsitAction!showZbmxList">财务费用查询</a></li>
	<li><a href="./revolvingFundInAction">备用金转入</a></li>
<%}else if(PACKET.equals("system")){ %>
	<li><a href="./systemList!user">用户管理</a></li>
	<li><a href="./systemList!role">角色管理</a></li>

	
	<sec:authorize ifAllGranted="dev">
	<li><a href="./credentialListAction!credential">证件管理</a></li>
	<li><a href="./systemList!auth">权限管理</a></li>
	<li><a href="./systemList!res">资源管理</a></li>
	</sec:authorize>

<%}else if(PACKET.equals("manage")){ %>
	
			<li><a href="#">法人基本信息</a>
				<ul>
					<li><a href="./dropdownupdate!showCmList?type=1">公司类型</a></li>
					<li><a href="./dropdownupdate!showCmList?type=2">证件类型</a></li>
					<li><a href="./dropdownupdate!showCmList?type=3">币种</a></li>
					<li><a href="./dropdownupdate!showCmList?type=4">经济类型</a></li>
					<li><a href="./dropdownupdate!showCmList?type=5">企业规模</a></li>
				</ul>
			</li>
			<li><a href="#">法人高管信息</a>
				<ul>
					<li><a href="./dropdownupdate!showCmList?type=6">高管人员类别</a></li>
					<li><a href="./dropdownupdate!showCmList?type=7">文化程度</a></li>
				</ul>
			</li>
			<li><a href="#">法人管理信息</a>
				<ul>
					<li><a href="./dropdownupdate!showCmList?type=8">经营场地所有权</a></li>
					<li><a href="./dropdownupdate!showCmList?type=9">管理特征</a></li>
					<li><a href="./dropdownupdate!showCmList?type=10">企业类别</a></li>
					<li><a href="./dropdownupdate!showCmList?type=11">产业政策</a></li>
					<li><a href="./dropdownupdate!showCmList?type=12">经营状况</a></li>
					<li><a href="./dropdownupdate!showCmList?type=13">改制重组形式</a></li>
					<li><a href="./dropdownupdate!showCmList?type=14">房地产企业资质</a></li>
				</ul>
			</li>
			<li><a href="#">申请人基本信息</a>
				<ul>
					<li><a href="./dropdownupdate!showCmList?type=15">与申请人关系</a></li>
				</ul>
			</li>
			<li><a href="#">申请人贷款情况</a>
			<ul>
					<li><a href="./dropdownupdate!showCmList?type=16">贷款用途</a></li>
					<li><a href="./dropdownupdate!showCmList?type=17">贷款品种</a></li>
					<li><a href="./dropdownupdate!showCmList?type=18">还款方式</a></li>
				</ul>
			</li>
	<li>
		<a href="#">基准利率管理</a>
		<ul >
			<li><a href="./rateManage">利率设置</a></li>
		</ul>
	</li>
	<li>
		<a href="#">贷款方式管理</a>
		<ul >
			<li><a href="./loanofmodemanage">贷款方式设置</a></li>
		</ul>
	</li>
<%}else if(PACKET.equals("credit")) {%>
	<%--<li><a href="./creditApplyAction!go_in_enterprise">企业贷款申请</a></li>
	<li><a href="./creditApplyAction!go_in_personal">个人贷款申请</a></li>
	--%>
	<li>
		<a href="#">贷款申请</a>
		<ul >
			<li><a href="./creditApplyAction!go_in_enterprise">企业贷款申请</a></li>
			<li><a href="./creditApplyAction!go_in_personal">个人贷款申请</a></li>
		</ul>
	</li>
	<%--<li>
		<a href="#">贷款查询</a>
		<ul >
			<li><a href="./creditSearch?operateState=select&type=1">个人贷款查询</a></li>
			<li><a href="./creditSearch?operateState=select&type=2">企业贷款查询</a></li>
		</ul>
	</li>
	<li><a href="./creditApplyListAction?state=approval">贷款审批</a></li>
	<li><a href="./creditApplyListAction?state=issue">贷款发放</a></li>
	<li><a href="./creditApplyListAction?state=back">贷款收回</a></li>--%>
<%}else if(PACKET.equals("creditcheck")) {%>
	<li><a href="#">授理</a>
		<ul >
			<li><a href="./creditAcceptAction?type=2">企业贷款授理</a></li>
			<li><a href="./creditAcceptAction?type=1">个人贷款授理</a></li>
		</ul>
	</li>
	<li><a href="#">调查</a>
		<ul >
			<li><a href="./creditSurveyAction?type=2">企业贷款调查</a></li>
			<li><a href="./creditSurveyAction?type=1">个人贷款调查</a></li>
		</ul>
	</li>
	<li>
		<a href="#">贷款审查</a>
		<ul >
			<li><a href="./creditExamineAction?type=2">企业贷款审查</a></li>
			<li><a href="./creditExamineAction?type=1">个人贷款审查</a></li>
		</ul>
	</li>
	<li>
		<a href="#">复查意见</a>
		<ul >
			<li><a href="./creditExamineAdviceAction?type=2">企业复查意见</a></li>
			<li><a href="./creditExamineAdviceAction?type=1">个人复查意见</a></li>
		</ul>
	</li>
	<li>
		<a href="#">贷款审批</a>
		<ul >
			<li><a href="./creditApprovalAction?type=2">企业贷款审批</a></li>
			<li><a href="./creditApprovalAction?type=1">个人贷款审批</a></li>
		</ul>
	</li>
	<li>
		<a href="#">最终审批</a>
		<ul >
			<li><a href="./creditFinalApprovalAction?type=2">企业最终审批</a></li>
			<li><a href="./creditFinalApprovalAction?type=1">个人最终审批</a></li>
		</ul>
	</li>
<%}else if(PACKET.equals("creditout")) {%>
	<li><a href="./creditOut!doing">待处理借款</a></li>
	<li><a href="./creditOut!done">待处理借款</a></li>
<%}else if(PACKET.equals("creditmanage")) {%>
	<li><a href="#">利息</a>
		<ul >
			<li><a href="./creditInterest!doing">待处理利息</a></li>
			<li><a href="./creditInterest!done">已处理利息</a></li>
		</ul>
	</li>
	<li><a href="#">还款</a>
		<ul >
			<li><a href="./creditIn!doing">待处理还款</a></li>
			<li><a href="./creditIn!aheadDoing">待处理提前还款</a></li>
			<li><a href="./creditIn!done">已处理还款</a></li>
		</ul>
	</li>
<%}else if(PACKET.equals("grant")) {%>
	<li><a href="#">客户授信</a>
		<ul >
			<li><a href="./grantCreateList!showCompany">企业客户授信</a></li>
			<li><a href="./grantCreateList!showPersonal">个人客户授信</a></li>
		</ul>
	</li>
	<li><a href="#">授信详情查询</a>
		<ul>
			<li><a href="./showGrant!findGrantListCompany">企业客户授信详情</a></li>
			<li><a href="./showGrant!findGrantListPersonal">个人客户授信详情</a></li>
		</ul>
	</li>
<%}else if(PACKET.equals("custom")) {%>
	<li><a href="./customList!companylistshow">企业客户信息查询</a></li>
	<li id="custom_company">
		<a href="./customList!companylistmodify">企业客户信息登记</a>
		<!--  
		<ul >
			<li><a href="customShow!companyshow">法人基本信息</a></li>
			<li><a href="customList!contactlist">法人联系信息</a></li>
			<li><a href="customList!topmanagerlist">法人高管信息</a></li>
			<li><a href="customList!prosecutedlist">法人被起诉信息</a></li>
			<li><a href="customList!investorlist">法人投资人信息</a></li>
			<li><a href="customList!foreigninvestorlist">法人对外投资信息</a></li>
			
			<li><a href="customList!pledgercompanylist">抵质押清单信息</a></li>			
		
			<li><a href="customList!managelist">法人管理信息</a></li>	
					
			<li><a href="customList!externalguaranteelist">法人对外担保信息</a></li>
		
			 
			<li><a href="customList!otherloanlist">法人其他借款</a></li>
			 
			<li><a href="customList!bankcreditlist">法人银行信贷信息</a></li>
			
			
			
			<li><a href="customList!cashflowlist">法人现金流量表</a></li>
			<li><a href="customList!assetsdebtlist">法人资产负债表</a></li>
			<li><a href="customList!profitlist">法人损益表表</a></li>	
			 <li><a href="upload!filelist?listtype=1">客户基础资料归档目录</a></li>
			 <li><a href="upload!filelist?listtype=2">客户必备资料归档目录</a></li>			
							
		</ul>
		-->
	</li>
	
	
	<li><a href="customList!personallistshow">个人客户信息查询</a></li>
	<li><a href="customList!personallistmodify">个人客户信息登记</a></li>
<%}else if(PACKET.equals("report")) {%>
	<li><a href="./reportContract">月贷款利息台账</a></li>
	<li><a href="./riskManagement">风险信息监测表</a></li>
	<li><a href="./reportCount">贷款情况调度汇总表</a></li>
	<li><a href="./reportDetail">贷款明细汇总表</a></li>
<%}else{ %>
	<li><a href="<%=this_path%>/system/systemList!user">我的信息</a></li>
	<li><a href="<%=this_path%>/j_spring_security_logout">退出系统</a></li>
<%} %>
</ul>
</div>
<script type="text/javascript">
$(function () {
	$("#jstree")
		.jstree({ 
			"plugins" : ["themes","html_data","ui"],"core":{"animation":0}})
		.bind("select_node.jstree", function (event, data) {
			var node = data.rslt.obj;
			if($(node).hasClass('jstree-leaf')){
				location.href=node.find('a').attr('href');
			}else{			
   				if ($(node).hasClass('jstree-closed')) { return data.inst.open_node(node); }
    			if ($(node).hasClass('jstree-open')) { return data.inst.close_node(node); }
			}			
		})
		.delegate("a", "click", function (event, data) { event.preventDefault();});
	});
</script>

